package com.fairytask.extention.user;

import java.util.Arrays;

import com.smartfoxserver.v2.components.login.LoginAssistantComponent;
import com.smartfoxserver.v2.extensions.ISFSExtension;

public class LoginLogic extends LoginAssistantComponent
{

	public LoginLogic(ISFSExtension ext)
	{
		super(ext);
		initField();
	}

	private void initField()
	{
		getConfig().loginTable	=	"users";
		getConfig().userNameField 	=	"name";
		getConfig().passwordField 	=	"pword";
		getConfig().nickNameField	=	"nickname";
		getConfig().extraFields	=	Arrays.asList("viptype");//,"createdate","updatedate"
	}

}
